﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Szabalyrendszer;

namespace Szimulator
{
    public partial class ErekjeKeszito : Form
    {
        public ErekjeKeszito()
        {
            InitializeComponent();

        }

        private IRaktar raktar;

        public IRaktar Raktar
        {
            get
            {
                return raktar ?? (raktar = new Raktar());
            }
            set
            {
                raktar = value;
            }
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
        }

        private void btnUjMozaik_Click(object sender, EventArgs e)
        {
            mozaikokPanel.Controls.Add(new ErekjeMozaik());
        }

        private void btnUjIdomagia_Click(object sender, EventArgs e)
        {
            mozaikokPanel.Controls.Add(new ErekjeIdomagia { Idomagiak = Raktar.OszesIdoMagia() });
        }

        private void gondolatiAktivalas_CheckedChanged(object sender, EventArgs e)
        {
            UpdateUi();
        }

        private void UpdateUi()
        {

        }
    }
}
